# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-typing-extensions
pkgver=4.11.0
pkgrel=1
pkgdesc="Backported and Experimental Type Hints for Python 3.5+"
url="https://github.com/python/typing_extensions"
arch="noarch"
license="Python-2.0"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="python3-tests"
subpackages="$pkgname-pyc"
source="https://github.com/python/typing_extensions/archive/$pkgver/typing_extensions-$pkgver.tar.gz"
builddir="$srcdir/typing_extensions-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 src/test_typing_extensions.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/typing_extensions-$pkgver-py3-none-any.whl
}

sha512sums="
2d4f19adc5ec9f40502ea6a5c6077b01ea41439fee2b92cd14907e0d093c0f51f4daaba7a2163b5fa14d99413aeb30cad1ef439bb45af6d53634d5ea4ee8a2f4  typing_extensions-4.11.0.tar.gz
"
